package com.example.service.impl;

import com.example.Bean.po.CoursePlan;
import com.example.Bean.vo.QueryVO;
import com.example.Dao.CoursePlanDao;
import com.example.service.ICoursePlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service

public class CoursePlanService implements ICoursePlanService {
	@Autowired
	CoursePlanDao coursePlanDao;

	@Override
	public List<CoursePlan> selectAll(QueryVO queryVO) {
		try{
			List<CoursePlan> coursePlanList = coursePlanDao.selectAll(queryVO);
			return coursePlanList;
		}catch (Exception e){
			e.printStackTrace();
			return Collections.emptyList();
		}

	}
}
